package com.ssm.student.tool;
/*返回值的格式内容*/
public class ResponseMessage<T> {
    private String respCode;
    private String respMsg;
    private  T date;
    private  boolean ok;

    public ResponseMessage(String respCode,String respMsg){
        this.respCode=respCode;
        this.respMsg=respMsg;

    }
    public ResponseMessage(String respCode,String respmsg,boolean ok){
        this.respCode=respCode;
        this.respMsg=respMsg;
        this.ok=ok;
    }
    public ResponseMessage(String respCode,String respmsg,boolean ok,T date){
        this.respCode=respCode;
        this.respMsg=respMsg;
        this.ok=ok;
        this.date=date;
    }




    public String getRespCode() {
        return respCode;
    }

    public String getRespMsg() {
        return respMsg;
    }

    public T getDate() {
        return date;
    }

    public boolean isOk() {
        return ok;
    }

    public void setRespCode(String respCode) {
        this.respCode = respCode;
    }

    public void setRespMsg(String respMsg) {
        this.respMsg = respMsg;
    }

    public void setDate(T date) {
        this.date = date;
    }

    public void setOk(boolean ok) {
        this.ok = ok;
    }


}
